#自定义变量
CC = gcc
CC_FLAG = -g -Wall -I
INCLUDE = ./include
FILEPATH = ./resource/save_file/
SRC = ./*.c ./src/ui/admin/*.c  ./src/ui/buyer/*.c ./src/ui/test_center_ui.c ./src/ui/justice/*.c  ./src/ctrl/user_ctrl/*.c ./src/ctrl/admin_ctrl/*.c ./src/ctrl/justice_ctrl/*.c
#SRC = ${wildcard ./src/*.c} 

#执行编译
hello:$(SRC)
	@$(CC) $(CC_FLAG) $(INCLUDE) $(SRC) -o $@

#清理
clean:
	@rm hello

#测试
test:
	@./hello
file:
	@echo "\033[1;31mThe list_file is saved here: $(FILEPATH)\033[0m"
	@ls -l ./resource/save_file
rm:
	@rm $(FILEPATH)/*
#防止test文件的干扰
.PHONY:test
